package org.xxpay.core.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AlipayCashDetailExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    private Integer limit;

    private Integer offset;

    public AlipayCashDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCashIdIsNull() {
            addCriterion("CashId is null");
            return (Criteria) this;
        }

        public Criteria andCashIdIsNotNull() {
            addCriterion("CashId is not null");
            return (Criteria) this;
        }

        public Criteria andCashIdEqualTo(Integer value) {
            addCriterion("CashId =", value, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdNotEqualTo(Integer value) {
            addCriterion("CashId <>", value, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdGreaterThan(Integer value) {
            addCriterion("CashId >", value, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("CashId >=", value, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdLessThan(Integer value) {
            addCriterion("CashId <", value, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdLessThanOrEqualTo(Integer value) {
            addCriterion("CashId <=", value, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdIn(List<Integer> values) {
            addCriterion("CashId in", values, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdNotIn(List<Integer> values) {
            addCriterion("CashId not in", values, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdBetween(Integer value1, Integer value2) {
            addCriterion("CashId between", value1, value2, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashIdNotBetween(Integer value1, Integer value2) {
            addCriterion("CashId not between", value1, value2, "cashId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdIsNull() {
            addCriterion("CashUserId is null");
            return (Criteria) this;
        }

        public Criteria andCashUserIdIsNotNull() {
            addCriterion("CashUserId is not null");
            return (Criteria) this;
        }

        public Criteria andCashUserIdEqualTo(Integer value) {
            addCriterion("CashUserId =", value, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdNotEqualTo(Integer value) {
            addCriterion("CashUserId <>", value, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdGreaterThan(Integer value) {
            addCriterion("CashUserId >", value, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("CashUserId >=", value, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdLessThan(Integer value) {
            addCriterion("CashUserId <", value, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("CashUserId <=", value, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdIn(List<Integer> values) {
            addCriterion("CashUserId in", values, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdNotIn(List<Integer> values) {
            addCriterion("CashUserId not in", values, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdBetween(Integer value1, Integer value2) {
            addCriterion("CashUserId between", value1, value2, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andCashUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("CashUserId not between", value1, value2, "cashUserId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdIsNull() {
            addCriterion("AlipayLoginId is null");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdIsNotNull() {
            addCriterion("AlipayLoginId is not null");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdEqualTo(String value) {
            addCriterion("AlipayLoginId =", value, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdNotEqualTo(String value) {
            addCriterion("AlipayLoginId <>", value, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdGreaterThan(String value) {
            addCriterion("AlipayLoginId >", value, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdGreaterThanOrEqualTo(String value) {
            addCriterion("AlipayLoginId >=", value, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdLessThan(String value) {
            addCriterion("AlipayLoginId <", value, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdLessThanOrEqualTo(String value) {
            addCriterion("AlipayLoginId <=", value, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdLike(String value) {
            addCriterion("AlipayLoginId like", value, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdNotLike(String value) {
            addCriterion("AlipayLoginId not like", value, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdIn(List<String> values) {
            addCriterion("AlipayLoginId in", values, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdNotIn(List<String> values) {
            addCriterion("AlipayLoginId not in", values, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdBetween(String value1, String value2) {
            addCriterion("AlipayLoginId between", value1, value2, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andAlipayLoginIdNotBetween(String value1, String value2) {
            addCriterion("AlipayLoginId not between", value1, value2, "alipayLoginId");
            return (Criteria) this;
        }

        public Criteria andPlanAmountIsNull() {
            addCriterion("PlanAmount is null");
            return (Criteria) this;
        }

        public Criteria andPlanAmountIsNotNull() {
            addCriterion("PlanAmount is not null");
            return (Criteria) this;
        }

        public Criteria andPlanAmountEqualTo(Long value) {
            addCriterion("PlanAmount =", value, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountNotEqualTo(Long value) {
            addCriterion("PlanAmount <>", value, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountGreaterThan(Long value) {
            addCriterion("PlanAmount >", value, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("PlanAmount >=", value, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountLessThan(Long value) {
            addCriterion("PlanAmount <", value, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountLessThanOrEqualTo(Long value) {
            addCriterion("PlanAmount <=", value, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountIn(List<Long> values) {
            addCriterion("PlanAmount in", values, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountNotIn(List<Long> values) {
            addCriterion("PlanAmount not in", values, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountBetween(Long value1, Long value2) {
            addCriterion("PlanAmount between", value1, value2, "planAmount");
            return (Criteria) this;
        }

        public Criteria andPlanAmountNotBetween(Long value1, Long value2) {
            addCriterion("PlanAmount not between", value1, value2, "planAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountIsNull() {
            addCriterion("RealAmount is null");
            return (Criteria) this;
        }

        public Criteria andRealAmountIsNotNull() {
            addCriterion("RealAmount is not null");
            return (Criteria) this;
        }

        public Criteria andRealAmountEqualTo(Long value) {
            addCriterion("RealAmount =", value, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountNotEqualTo(Long value) {
            addCriterion("RealAmount <>", value, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountGreaterThan(Long value) {
            addCriterion("RealAmount >", value, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("RealAmount >=", value, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountLessThan(Long value) {
            addCriterion("RealAmount <", value, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountLessThanOrEqualTo(Long value) {
            addCriterion("RealAmount <=", value, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountIn(List<Long> values) {
            addCriterion("RealAmount in", values, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountNotIn(List<Long> values) {
            addCriterion("RealAmount not in", values, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountBetween(Long value1, Long value2) {
            addCriterion("RealAmount between", value1, value2, "realAmount");
            return (Criteria) this;
        }

        public Criteria andRealAmountNotBetween(Long value1, Long value2) {
            addCriterion("RealAmount not between", value1, value2, "realAmount");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("Status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("Status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("Status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("Status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("Status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("Status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("Status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("Status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("Status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("Status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("Status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("Status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgIsNull() {
            addCriterion("AlipayErrorMsg is null");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgIsNotNull() {
            addCriterion("AlipayErrorMsg is not null");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgEqualTo(String value) {
            addCriterion("AlipayErrorMsg =", value, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgNotEqualTo(String value) {
            addCriterion("AlipayErrorMsg <>", value, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgGreaterThan(String value) {
            addCriterion("AlipayErrorMsg >", value, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgGreaterThanOrEqualTo(String value) {
            addCriterion("AlipayErrorMsg >=", value, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgLessThan(String value) {
            addCriterion("AlipayErrorMsg <", value, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgLessThanOrEqualTo(String value) {
            addCriterion("AlipayErrorMsg <=", value, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgLike(String value) {
            addCriterion("AlipayErrorMsg like", value, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgNotLike(String value) {
            addCriterion("AlipayErrorMsg not like", value, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgIn(List<String> values) {
            addCriterion("AlipayErrorMsg in", values, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgNotIn(List<String> values) {
            addCriterion("AlipayErrorMsg not in", values, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgBetween(String value1, String value2) {
            addCriterion("AlipayErrorMsg between", value1, value2, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andAlipayErrorMsgNotBetween(String value1, String value2) {
            addCriterion("AlipayErrorMsg not between", value1, value2, "alipayErrorMsg");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdIsNull() {
            addCriterion("BelongUserId is null");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdIsNotNull() {
            addCriterion("BelongUserId is not null");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdEqualTo(Long value) {
            addCriterion("BelongUserId =", value, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdNotEqualTo(Long value) {
            addCriterion("BelongUserId <>", value, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdGreaterThan(Long value) {
            addCriterion("BelongUserId >", value, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("BelongUserId >=", value, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdLessThan(Long value) {
            addCriterion("BelongUserId <", value, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdLessThanOrEqualTo(Long value) {
            addCriterion("BelongUserId <=", value, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdIn(List<Long> values) {
            addCriterion("BelongUserId in", values, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdNotIn(List<Long> values) {
            addCriterion("BelongUserId not in", values, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdBetween(Long value1, Long value2) {
            addCriterion("BelongUserId between", value1, value2, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andBelongUserIdNotBetween(Long value1, Long value2) {
            addCriterion("BelongUserId not between", value1, value2, "belongUserId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}